package com.example.patentback.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.*;

@Data
@ToString
public class Document {
    @Id
    private Long id;

    /**
     * 文件路径用“.”拼接
     */
    private String url;

    private String field;

    private String background;

    private String introduce;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取文件路径用“.”拼接
     *
     * @return url - 文件路径用“.”拼接
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置文件路径用“.”拼接
     *
     * @param url 文件路径用“.”拼接
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return field
     */
    public String getField() {
        return field;
    }

    /**
     * @param field
     */
    public void setField(String field) {
        this.field = field;
    }

    /**
     * @return background
     */
    public String getBackground() {
        return background;
    }

    /**
     * @param background
     */
    public void setBackground(String background) {
        this.background = background;
    }

    /**
     * @return introduce
     */
    public String getIntroduce() {
        return introduce;
    }

    /**
     * @param introduce
     */
    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }
}